# conding:utf8
import urllib2
# import cookielib
import re
from bs4 import BeautifulSoup

url = "http://baike.baidu.com"
ci_tiao = "/item/Python"

# ------------------------
rec = urllib2.urlopen(url+ci_tiao)
soup = BeautifulSoup(rec.read(),'html.parser',from_encoding='utf8')


c = soup.find_all('a',href=re.compile(r"/"))
for v in c:
	print v.name,v.get_text(),url+v['href']